package com.qmctl.rest.bean.returnorderconfirm;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import com.qmctl.rest.entity.EntryOrderLines;

@XmlRootElement(name="OrderLine")
public class OrderLineClazz{

  public OrderLineClazz(){
  
  }

  private String orderLineNo;
  private String sourceOrderCode;
  private String subSourceOrderCode;
  private String itemCode;
  private String itemId;
  private String inventoryType;
  private long planQty;
  private long actualQty;
  private String batchCode;
  private String productDate;
  private String expireDate;
  private String produceCode;
  @XmlElementWrapper(name="batchs")
  @XmlElement(name="batch")
  private List<BatchClazz> batchLst;
  private String qrCode;
  
  public OrderLineClazz(EntryOrderLines beanClazz){
	    orderLineNo = beanClazz.getOrderLineNo();
	    itemCode = beanClazz.getItemCode();
	    itemId = beanClazz.getItemId();
	    inventoryType = beanClazz.getInventoryType();
	    planQty = beanClazz.getPlanQty();
	    actualQty = beanClazz.getActualQty();
	    batchCode = beanClazz.getBatchCode();
	    productDate = beanClazz.getProductDate();
	    expireDate = beanClazz.getExpireDate();
	    produceCode = beanClazz.getProduceCode();
	    batchLst = null;
}
  public String getOrderLineNo(){
    return orderLineNo;
  }
  public void setOrderLineNo(String sOrderLineNo){
    orderLineNo = sOrderLineNo;
  }
  public String getSourceOrderCode(){
    return sourceOrderCode;
  }
  public void setSourceOrderCode(String sSourceOrderCode){
    sourceOrderCode = sSourceOrderCode;
  }
  public String getSubSourceOrderCode(){
    return subSourceOrderCode;
  }
  public void setSubSourceOrderCode(String sSubSourceOrderCode){
    subSourceOrderCode = sSubSourceOrderCode;
  }
  public String getItemCode(){
    return itemCode;
  }
  public void setItemCode(String sItemCode){
    itemCode = sItemCode;
  }
  public String getItemId(){
    return itemId;
  }
  public void setItemId(String sItemId){
    itemId = sItemId;
  }
  public String getInventoryType(){
    return inventoryType;
  }
  public void setInventoryType(String sInventoryType){
    inventoryType = sInventoryType;
  }
  public long getPlanQty(){
    return planQty;
  }
  public void setPlanQty(long iPlanQty){
    planQty = iPlanQty;
  }
  public long getActualQty(){
    return actualQty;
  }
  public void setActualQty(long iActualQty){
    actualQty = iActualQty;
  }
  public String getBatchCode(){
    return batchCode;
  }
  public void setBatchCode(String sBatchCode){
    batchCode = sBatchCode;
  }
  public String getProductDate(){
    return productDate;
  }
  public void setProductDate(String sProductDate){
    productDate = sProductDate;
  }
  public String getExpireDate(){
    return expireDate;
  }
  public void setExpireDate(String sExpireDate){
    expireDate = sExpireDate;
  }
  public String getProduceCode(){
    return produceCode;
  }
  public void setProduceCode(String sProduceCode){
    produceCode = sProduceCode;
  }
  public void setBatchs(List<BatchClazz> clazzBatchs){
	  batchLst = clazzBatchs;
  }
public String getQrCode() {
	return qrCode;
}
public void setQrCode(String qrCode) {
	this.qrCode = qrCode;
}

}
